<table class="layui-table">
<thead>
<tr>
    <th>类型</th>
    <th class="ordertitle" id="user_depart.depart_id">销售店铺</th>
    <th class="ordertitle" id="order_sn">订单号</th>
    <th>类别</th>
    <th>商品</th>
    <th>款号</th>
    <th>规格</th>
    <th>单价</th>
    <th>数量</th>
</tr> 
</thead>
<tbody>
<foreach name="list" key="k" item="vo">

<tr <if condition="$vo['pay_status'] neq 2">style="color:red;"</if>>
    <td>
    <if condition="$vo['offline_status'] eq 2">
        <a href="#here" class="layui-btn layui-btn-mini layui-btn-danger">线下</a>
    </if>
    <if condition="$vo['offline_status'] eq 0">
        <a href="#here" class="layui-btn layui-btn-mini">线上</a>
    </if>
    <if condition="$vo['offline_status'] eq 1">
        <a href="#here" class="layui-btn layui-btn-mini layui-btn-warm">待定</a>
    </if>
    </td>
    <td>{$vo['depart_name']|default='线上订单'}:{$vo['staff_name']|default='系统销售'}</td>
    <td>{$vo.order_sn}</td>
    <td>{$vo.cat_name}</td>
    <td>{$vo.goods_name}</td>
    <td>{$vo.goods_sn}</td>
    <td>{$vo.goods_attr}</td>
    <td>{$vo.goods_price}</td>
    <td>{$vo.goods_number}</td>
</tr>
</foreach>
<tr>
    <th>合计</th>
    <th>-</th>
    <th>-</th>
    <th>-</th>
    <th>-</th>
    <th>-</th>
    <th>-</th>
    <th>-</th>
    <th>{$total.qty}</th>
</tr> 
</tbody>
</table>
<input type="text" id="listTotalPage" value="{$totalPage}" style="display:none"/>